package utils;

import redis.clients.jedis.Jedis;

/**
 * @function redis连接对象工具类
 * @author Team03 杨淏淋
 * @date 2022-06-07 20:41
 * @email 2919886673@qq.com
 */
public class RedisUtils {
    /**
     * 获取redis连接对象
     * @return
     */
    public static Jedis getRedisConnection() {
        Jedis jedis = null;
        try {
            jedis = new Jedis("47.113.145.215",6639);
            jedis.auth("qazwerplm1367");

        } catch (Exception e) {
            e.printStackTrace();
        }
        return jedis;
    }
}
